<?
require("includes/constants.php");

session_start();
if(!isset($_SESSION['userName']))
	exit();
?>

<div id="mainPopUp">
	<form id="carrerasPopForm" name="carrerasPopForm" method="post">
		<table id="inPopUpN" border="0" cellpadding="0" cellspacing="0">
			<tbody>
				<tr>
					<td>Nombre Carrera</td>
					<td><input id="carreraName" name="carreraName" class="tableIn" type="text"></td>
					<td>Palomas</td>
					<td>
						<select id="tipoPalomas" name="tipoPalomas">
							<option value="P">Pichon</option>
							<option value="A">Adultas</option>
						</select>
					</td>
					<td>Tipo Carrera</td>
					<td>
						<select id="tipoCarrera" name="tipoCarrera">
							<option value="G">General</option>
							<option value="F">Fondo</option>
							<option value="E">Extra</option>
							<option value="P">1 Pta 120</option>
						</select>
					</td>
				</tr>
				<tr>
					<td>Fecha</td>
					<td><input id="carreraFecha" name="carreraFecha" class="tableIn" type="text" style="width: 110px"></td>
					<td colspan="3">Bloquear Ingreso de Datos</td>
					<td>
						<select id="blockDE" name="blockDE">
							<option value="N">No</option>
							<option value="S">Si</option>
						</select>
					</td>
				</tr>
				<tr>
					<td colspan="2">D&iacute;a Cierre</td>
					<td>
						<input id="diaCierre" name="diaCierre" class="tableIn" type="text" style="width: 20px;" maxlength="1">
					</td>
					<td colspan="2">Hora Cierre</td>
					<td>
						<input id="horaCierre" name="horaCierre" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
				<tr>
					<td colspan="2">D&iacute;a Apertura</td>
					<td>
						<input id="diaApertura" name="diaApertura" class="tableIn" type="text" style="width: 20px;" maxlength="1">
					</td>
					<td colspan="2">Hora Apertura</td>
					<td>
						<input id="horaApertura" name="horaApertura" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
				<tr id="row1raPta">
					<td>Norte</td>
					<td>
						<select id="carreraNorte" name="carreraNorte" class="tableIn"></select>
					</td>
					<td>Kms.</td>
					<td>
						<input id="kmsNorte" name="kmsNorte" class="tableIn" type="text" style="width: 50px;" maxlength="4">
					</td>
					<td>D&iacute;a/Hora Suelta</td>
					<td>
						<input id="diaSueltaNorte" name="diaSueltaNorte" class="tableIn" type="text" style="width: 20px" >
						<input id="horaSueltaNorte" name="horaSueltaNorte" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
				<tr id="row2daPta">
					<td>Sur</td>
					<td>
						<select id="carreraSur" name="carreraSur" class="tableIn"></select>
					</td>
					<td>Kms.</td>
					<td>
						<input id="kmsSur" name="kmsSur" class="tableIn" type="text" style="width: 50px;" maxlength="4">
					</td>
					<td>D&iacute;a/Hora Suelta</td>
					<td>
						<input id="diaSueltaSur" name="diaSueltaSur" class="tableIn" type="text" style="width: 20px" >
						<input id="horaSueltaSur" name="horaSueltaSur" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
				<tr id="row3raPta">
					<td>Este</td>
					<td>
						<select id="carreraEste" name="carreraEste" class="tableIn"></select>
					</td>
					<td>Kms.</td>
					<td>
						<input id="kmsEste" name="kmsEste" class="tableIn" type="text" style="width: 50px;" maxlength="4">
					</td>
					<td>D&iacute;a/Hora Suelta</td>
					<td>
						<input id="diaSueltaEste" name="diaSueltaEste" class="tableIn" type="text" style="width: 20px" >
						<input id="horaSueltaEste" name="horaSueltaEste" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
				<tr id="row4taPta">
					<td>Oeste</td>
					<td>
						<select id="carreraOeste" name="carreraOeste" class="tableIn"></select>
					</td>
					<td>Kms.</td>
					<td>
						<input id="kmsOeste" name="kmsOeste" class="tableIn" type="text" style="width: 50px;" maxlength="4">
					</td>
					<td>D&iacute;a/Hora Suelta</td>
					<td>
						<input id="diaSueltaOeste" name="diaSueltaOeste" class="tableIn" type="text" style="width: 20px" >
						<input id="horaSueltaOeste" name="horaSueltaOeste" class="tableIn" type="text" style="width: 100px" >
					</td>
				</tr>
			</tbody>
		</table>
		<table>
			<tbody>
				<tr>
					<td>Hora Puesta/Sol 1</td>
					<td>
						<input id="horaPuestaSol1" name="horaPuestaSol1" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td colspan="2">Hora Sale/Sol 1</td>
					<td>
						<input id="horaSaleSol1" name="horaSaleSol1" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>Hora Puesta/Sol 2</td>
					<td>
						<input id="horaPuestaSol2" name="horaPuestaSol2" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td colspan="2">Hora Sale/Sol 2</td>
					<td>
						<input id="horaSaleSol2" name="horaSaleSol2" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td>&nbsp;</td>
				</tr>
				<tr>
					<td>Hora Puesta/Sol 3</td>
					<td>
						<input id="horaPuestaSol3" name="horaPuestaSol3" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td colspan="2">Hora Sale/Sol 3</td>
					<td>
						<input id="horaSaleSol3" name="horaSaleSol3" class="tableIn" type="text" style="width: 100px" >
					</td>
					<td>&nbsp;</td>
				</tr>
			</tbody>
		</table>
		<button id="btnExit" class="itmIngBtnIn">Cerrar</button>
		<button id="btnSave" class="itmIngBtnIn">Guardar</button>
	</form>
</div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>